package com.topchain.schedule;

import com.topchain.licenceverify.service.LicenceVerify;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class LicenceJob {
    @Autowired
    private LicenceVerify licenceVerify;

    @Scheduled(cron = "0 0 */1 * * ?")
    public void testJob() throws Exception {
        licenceVerify.run(null);
    }
}
